#ifndef __MUTEXLOCK_H__
#define __MUTEXLOCK_H__

#include "NonCopyable.h"
#include <pthread.h>

namespace myNameSpace {
class MutexLock: NonCopyable {
public:
    MutexLock();
    ~MutexLock();

    void lock();
    void unlock();

    pthread_mutex_t * getMutexPtr();

private:
    pthread_mutex_t _mutex;
};
} // end of namespace myNameSpace

#endif
